package com.itheima.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        //f盘必须存在才能创建成功,同理 如果路径是F:\\heima\\a.txt则F:\\heima必须存在否则会报错
        FileOutputStream stream = new FileOutputStream("F:\\a.txt");
        stream.write(97);
        stream.close();

    }
}
